package com.masq.agencija.service;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import com.masq.agencija.interfaces.Client;



public class ClientsB implements Clients {

	private Map<String, Client> klijenti = new HashMap<String, Client>();

	public Collection<Client> retrieve() {
		return klijenti.values();
	}

	public Client save(Client klijent) {
		return klijenti.put(klijent.getIme(), klijent);
	}

	public Client retrieveSingleClient(String ime) {
		return klijenti.get(ime);
	}

}